home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX 6.5 Applications 2002 November
/
SGI IRIX 6.5 Applications 2002 November.iso
/
dev
/
java2v131_02_dev.idb
/
usr
/
demos
/
java2v131_02
/
JNI-simple-test
/
hello.c.z
/
hello.c
Wrap
C/C++ Source or Header
|
2002-06-19
|
455b
|
17 lines
/* HelloWorld.h generated by applying javah
on the Java class, and contains the
function declaration for the native method
*/
#include "HelloWorld.h"
/* used for printf */
#include "stdio.h"
void Java_HelloWorld_sayHelloWorld(JNIEnv *env, jobject obj) {
printf("\nGreeting from the untamed native world!\n");
printf("You have spoken to us through the JNI -- ");
printf("that is Java Native Interface\n");
printf("Congratulations\n\n");
}